package com.dayu.demo.pojo;

import java.util.Map;
import javax.persistence.Column;
import com.vecspace.data.model.RowMapper;

/** 部门
 * @template dayu-code-builder
 * @author user
 * @reviewer 
 * @createTime 2021-11-24 15:11:41
 */
public class DepartmentEx extends Department implements java.io.Serializable {
  private static final long serialVersionUID = 20014L;

    public DepartmentEx(){
    }

    public DepartmentEx(Department department){
        setDepartment(department);
    }
    /**拷贝department对象的属性值赋值到本对象的属性值*/
    public void setDepartment(Department obj){
        this.setId(obj.getId());
        this.setName(obj.getName());
        this.setParentId(obj.getParentId());
        this.setAdministrativeCategory(obj.getAdministrativeCategory());
        this.setAddr(obj.getAddr());
        this.setRemarks(obj.getRemarks());
        this.setOrdnum(obj.getOrdnum());
        this.setTenantId(obj.getTenantId());
        this.setRowLock(obj.getRowLock());
        this.setCreateTime(obj.getCreateTime());
        this.setCreateUser(obj.getCreateUser());
    }
    
    @Override
    public void parseFrom(Map<String, Object> row){
        super.parseFrom(row);
        RowMapper rowMapper = new RowMapper(row);
    }
}
